#include "Head.h"

namespace zty{

	int rand = 10;
	int add = Add(rand,10);
	char *str = "Hello world!";
	//char *str[] = { "I Love You!" };
	float f = 10.24f;
	double lf = 3.1415926;
	int *pi = &rand;

	int Add(int left, int right){
		return left + right;
	}

	int Sub(int left, int right){
		return left - right;
	}
	
	void printnum(int num){
		printf("%d", num);
	}

	namespace cc{
		int sub = Sub(add, 5);
	}

	int ret = Add(sub, 20);

	
	

}

void Printnum(int a = 1, int b = 2, int c = 3){
	cout << a << endl;
	cout << b << endl;
	cout << c << endl << endl;
}



void PrintStr(const char* str);


int key = 12;

int main(){

	
	
	/*cout << zty::rand << endl << zty::str << endl << zty::f << endl << zty::lf << endl << zty::pi << endl;
	cout << endl;
	cout << zty::add << endl;
	cout << zty::cc::sub<<endl;
	cout << zty::ret << endl;*/

	/*Printnum();
	Printnum(3);
	Printnum(3, 4);
	Printnum(3, 4, 5);
	Printnum(3, 4, 5);*/

	//cout << zty::str << endl;
	
#define CPP
	
#ifdef C
	int key = 15;
	cout << key << endl;

#elif defined(CPP)
	cout << ::key << endl;
#endif

	//PrintStr(str);

	
	system("pause");
	return 0;
}


void PrintStr(const char* str){
	cout << str << endl;
}

using namespace zty;
